//导入request.js请求工具
import request from "@/utils/request"
//提供调用注册接口的函数
export const registerService = (registerData: any) =>{
    return request.post('/system/user/register',registerData);
}
//提供调用获取验证码接口的函数
export const captchaService = () =>{
   return request.get('/system/captcha');
}

//提供调用登录接口的函数
export const adminLoginService = (registerData: any) =>{
   return request.post('/system/login',registerData);
}

//提供退出登录接口的函数
export const logoutService = () =>{
   return request.post('/system/logout')
}